import * as actionTypes from './actionTypes'
const defaultState = {
    articleTitle: '',
    articleContent: ''
}
export default (state = defaultState, action) => {
    switch (action.Type){
        case actionTypes.GET_DETAIL_DATA:
        console.log(action)
            return state.merge({
                articleTitle: action.articleTitle,
                articleContent: action.articleContent
            })
        default: 
        return state
    }
}